package com.aiyan.edu.govern.gateway.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: zqzhou
 * @create: 2019/12/01 12:57
 **/
@RestController
public class DefaultHystrixController {

    @RequestMapping("/defaultfallback")
    public Map<String, String> defaultfallback() {
        Map<String, String> map = new HashMap<>();
        map.put("code", "fail");
        map.put("message", "服务异常");
        map.put("result", "null");
        return map;
    }
}
